﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BoltScript : MonoBehaviour
{
    Rigidbody rigidbody1;
    public float speed =10f;


    // Start is called before the first frame update
    void Start()
    {
        rigidbody1 = this.GetComponent<Rigidbody>();
        rigidbody1.velocity = speed * transform.forward; 
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
